package org.ainlolcat;

import java.io.File;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: ain
 * Date: 10/29/11
 * Time: 10:00 PM
 * To change this template use File | Settings | File Templates.
 */
public class trashHolder {

    public static void main(String[] args) throws IOException {
        System.out.println(String.format("%1$04d",1));
        File f = new File("./project.sxp");
        System.out.println(f.getParentFile().getCanonicalPath());
        System.out.println("x1".substring(1,2));
        System.out.println("1234:5678".substring(0,"1234:5678".indexOf(":")));
        System.out.println("1234:5678".substring("1234:5678".indexOf(":")+1,"1234:5678".length()));
    }
}
